﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace MvcAtletIS.Models
{
    [MetadataType(typeof(ClubsGroupsMetaData))]
    public partial class ClubsGroups
    {
    }

    public class ClubsGroupsMetaData
    {
        [Required(ErrorMessage = "ID je povinný údaj.")]
        public string ID { get; set; }

        [DisplayName("Názov")]
        [Required(ErrorMessage = "Názov je povinný údaj.")]
        public string Name { get; set; }

        [DisplayName("Popis")]
        public string Description { get; set; }

        [DisplayName("Aktívna")]
        [DefaultValue(true)]
        public bool Active { get; set; }

        [DisplayName("Synch.")]
        [DefaultValue(true)]
        public bool Sync { get; set; }
    }
}